package com.qj.yantaishan.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.qj.yantaishan.mapper.UserDegreePackageMapper;
import com.qj.yantaishan.domain.UserDegreePackage;
import com.qj.yantaishan.service.IUserDegreePackageService;
import com.qj.yantaishan.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author qihe
 * @date 2022-07-22
 */
@Service
@Primary
public class UserDegreePackageServiceImpl    extends ServiceImpl<UserDegreePackageMapper, UserDegreePackage>  implements IUserDegreePackageService
{
    @Autowired
    private UserDegreePackageMapper userDegreePackageMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public UserDegreePackage selectUserDegreePackageById(Long id)
    {
        return userDegreePackageMapper.selectUserDegreePackageById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param userDegreePackage 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<UserDegreePackage> selectUserDegreePackageList(UserDegreePackage userDegreePackage)
    {
        return userDegreePackageMapper.selectUserDegreePackageList(userDegreePackage);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param userDegreePackage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertUserDegreePackage(UserDegreePackage userDegreePackage)
    {
        return userDegreePackageMapper.insertUserDegreePackage(userDegreePackage);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param userDegreePackage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateUserDegreePackage(UserDegreePackage userDegreePackage)
    {
        return userDegreePackageMapper.updateUserDegreePackage(userDegreePackage);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteUserDegreePackageByIds(String ids)
    {
        return userDegreePackageMapper.deleteUserDegreePackageByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteUserDegreePackageById(Long id)
    {
        return userDegreePackageMapper.deleteUserDegreePackageById(id);
    }
}
